package cn.steel.mapper;

import cn.steel.domain.entity.InventoryAnalysis;
import cn.steel.domain.entity.PriceTrendAnalysis;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DashboardMapper {

    @ApiOperation("库存分析")
    List<InventoryAnalysis> findByCategoryId(@Param("categoryId") Long categoryId);

    @ApiOperation("按分类和区域分组的库存分析")
    List<InventoryAnalysis> findInventoryByCategoryAndRegion(@Param("categoryId") Long categoryId);

    @ApiOperation("价格趋势分析")
    List<PriceTrendAnalysis> findPriceTrendsByCategory(@Param("categoryId") Long categoryId);

}
